package com.william.jdbcplus.boot.test.util;

import com.william.jdbcplus.core.dialect.ddl.DDLUtil;
import com.william.jdbcplus.core.util.CrudUtil;

import javax.sql.DataSource;

public class RecoverUtil {
    public static void main(String[] args) {
        String path = "D:\\DEV\\SOURCE\\aliyun\\jdbc-plus-master.git\\jdbc-plus-boot-starter-test\\src\\main\\resources\\backup\\";
        DataSource ds = DsUtil.getOracle();
        DDLUtil.updateDatabase("com.william.jdbcplus.boot.test", ds);
        CrudUtil.recover(path, ds);
    }
}
